spi: Add SPI driver for MT76xx SoCs
authorStefan Roese <[email protected]>
Thu, 16 Aug 2018 08:48:48 +0000 (10:48 +0200)
committerJagan Teki <[email protected]>
Thu, 4 Oct 2018 12:57:28 +0000 (18:27 +0530)
commit5eee9dee419f940ea75977df8b7ed8bb12bc029f
tree77feda397aa8ca81d1d240bc49c80dbd88d78398
parent9e5c2a755a6ca5f3931de548f43101d0d18ac003
spi: Add SPI driver for MT76xx SoCs

This patch adds the SPI driver for the MediaTek MT7688 SoC (and
derivates). Its been tested on the LinkIt Smart 7688 and the Gardena
Smart Gateway with and SPI NOR on CS0 and on the Gardena Smart
Gateway additionally with an SPI NAND on CS1.

Note that the SPI controller only supports a max transfer size of 32
bytes. This driver implementes a workaround to enable bigger xfer
sizes to speed up the transfer especially for the SPI NAND support.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Cc: Piotr Dymacz <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Reviewed-by: Daniel Schwierzeck <[email protected]>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/mt7621_spi.c [new file with mode: 0644]